
/*
 * (C)opyright 2010, Alessandro Agosto. All rights reserved.
 * This file is part of the "pycoev" project.
 * To get more informations about the license read the LICENSE file.
 *
 * Includes the Python APIs.
 */


#pragma once
#ifndef _PYC_PYAPIS_H
#define _PYC_PYAPIS_H


#include "Python.h"


#if (PY_MAJOR_VERSION >= 3)
#   define PYC_PY_3K
#endif /* PY_MAJOR_VERSION >= 3 */


#ifdef NDEBUG
#   undef NDEBUG
#endif


#define Pyc_Methods static PyMethodDef
#define Pyc_Fatal(type, message) ({\
    if (NULL == message) {\
        return NULL;\
    }\
    else {\
        PyErr_SetString(type, message);\
        return NULL;\
    }\
})


extern PyObject *Pyc_Error; /*pycoev.c*/


#include "pyc_py3ksupport.h"


#endif /* _PYC_PYAPIS_H */
